#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
#include<string.h>

int main(int argc, char *argv[])
{
 int disp, count;

 if(argc < 2)
  {
   printf("\n You Must Enter Length of the Countdown!");
   printf("\n Usage: class1 <count> [<display>]");
   exit(1);
  }
 if(argc==3 && !strcmp(argv[2],"display"))
  disp=1;
 else
  disp=0;
 for(count=atoi(argv[1]);count;count--)
  if(disp)
     printf("%d \n",count);
  putchar("\a");
  printf("\n Done! \n");
 return 0;
}
